﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqlImEx.Sql
{
    public class Field
    {
        public string name { get; set; }

        public bool nulls { get; set; }

        public int len { get; set; }

        public bool identity { get; set; }

        public FieldDataType datatype {get; set;}
    }

    public enum FieldDataType
    {

        /// <remarks/>
        guid,

        /// <remarks/>
        @string,

        /// <remarks/>
        int32,

        /// <remarks/>
        int64,

        /// <remarks/>
        @float,

        /// <remarks/>
        single,

        /// <remarks/>
        @decimal,

        /// <remarks/>
        date,

        /// <remarks/>
        datetime,

        /// <remarks/>
        bit,

        /// <remarks/>
        int16,

        /// <remarks/>
        @byte,

        /// <remarks/>
        bytearray,

        /// <remarks/>
        @object,

        /// <remarks/>
        timespan,

        /// <remarks/>
        timestamp,
    }
}
